//
//  XHNetMonitor.h
//  HTTPTEST
//
//  Created by edz on 2020/7/3.
//  Copyright © 2020 LI. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
/*网络监视器*/
NS_ASSUME_NONNULL_BEGIN
typedef void (^enableBlock)(BOOL isOK) ;
@interface XHNetMonitor : NSObject
@property (nonatomic, weak) UIViewController *root;
+ (instancetype)shareInstance;
- (void)startMonitor;
//可在多个地方调用
- (void)runNetEnable:(enableBlock)block needAlert:(BOOL)needAlert;
@end

NS_ASSUME_NONNULL_END
